<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>贵阳轨道交通</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <META http-equiv=Content-Type content="text/html; charset=utf-8">
    <META content="MSHTML 6.00.3790.4807" name=GENERATOR>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no, viewport-fit=cover">
<meta http-equiv="x-dns-prefetch-control" content="on">
    
    <script type="text/javascript" src="./guiyang_subway_data.js"></script>
    <script type="text/javascript" src="./guiyang_subway_print.js"></script>
    <script type="text/javascript" src="https://webapi.amap.com/maps?v=2.0&key=ad17babae123cfc6568dd60e371ed512&plugin=AMap.Adaptor,AMap.Transfer,AMap.moveAnimation,AMap.Marker"></script>
    <script type="text/javascript" src="https://cache.amap.com/lbs/static/addToolbar.js"></script>
    
    <style>
      html,
      body,
      #container {
          width: 100%;
          height: 100%;
          padding: 0;
          margin: 0;
      } 
    </style>

</head>
<body>
 
<div id="container"  >
</div>  
<div id="panel"></div>

<script>
 var map = new AMap.Map("container", {
      resizeEnable: true,
      center: [106.675334,26.619512],
      zoom: 12,
  });

/*var map = new AMap.Map('container', {
         center: [106.675334,26.619512],
        viewMode: '3D',
        pitch: 60,
        rotation: -35,
        // 隐藏默认楼块
        features: ['bg', 'road', 'point'],
        mapStyle: 'amap://styles/light',
        
        zoom: 12
    });*/

// 创建一个 Icon
var startIcon = new AMap.Icon({
    // 图标尺寸
    size: new AMap.Size(25, 34),
    // 图标的取图地址
    image: '//a.amap.com/jsapi_demos/static/demo-center/icons/dir-marker.png',
    // 图标所用图片大小
    imageSize: new AMap.Size(135, 40),
    // 图标取图偏移量
    imageOffset: new AMap.Pixel(-9, -3)
});
// 创建一个 icon
var endIcon = new AMap.Icon({
    size: new AMap.Size(25, 34),
    image: '//a.amap.com/jsapi_demos/static/demo-center/icons/dir-marker.png',
    imageSize: new AMap.Size(135, 40),
    imageOffset: new AMap.Pixel(-95, -3)
});
// 站点文字样式
var textStyle = {
    fontSize: 12,
    fontWeight: 'normal',
    fillColor: '#fff',
    padding: '2, 5',
    backgroundColor: 'rgb(246,137,38)',
    borderColor: '#fff',
    borderWidth: 1,
};

// ======================= 绘制1号线开始 ===================================
printLine(map, "1", "rgb(48, 206, 49)"); 
// ======================= 绘制2号线开始 ===================================
printLine(map, "2", "rgb(1, 68, 155)"); 
 // ======================= 绘制3号线开始 ===================================
printLine(map, "3", "rgb(231, 0, 16)");  
 // ======================= 绘制S1号线开始 ===================================
printLine(map, "s1", "rgb(16, 198, 238)"); 


</script>
</body>
</html>